<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        html body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            background-color: #59375A;
        }

        .login {
            width: 30vw;
            height: 24vw;
            padding: 0;
            background-color: white;
            position: absolute;
            box-sizing: border-box;
            left: 50%;
            top: 50%;
            margin-top: -12vw;
            margin-left: -15vw;
        }

        .login .header {
            width: 100%;
            height: 5vw;
            margin: 0;
            padding: 1vw;
            background-color: #6D4A70;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-sizing: border-box;
        }

        .login .header p:first-child {
            font-size: 2vw;
            color: white;
        }

        .login .header p:last-child {
            font-size: 1.5vw;
            color: white;
            margin-right: 1.5vw;
        }

        .login .zhongjian {
            width: 100%;
            height: 19vw;
            background-color: #f2f2f2;
            box-sizing: border-box;
        }

        .login .zhongjian .name {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .login .zhongjian .name #u_name {
            width: 24vw;
            height: 2vw;
            margin: 2vw 0 0.2vw 0;
            border-radius: 5px;
            border: 1px solid lightgray;
            box-sizing: border-box;

            background-image: url("img/ic_input_name.png");
            background-repeat: no-repeat;
            background-position-y: center;
            background-size: 1.3vw;
            background-position: 21vw;

            padding-left: 2vw;
        }

        .login .zhongjian .pwd {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .login .zhongjian .pwd #pwd {
            width: 24vw;
            height: 2vw;
            margin: 0.2vw 0 2vw 0;
            border-radius: 5px;
            border: 1px solid lightgray;
            box-sizing: border-box;

            background-image: url("img/timg - 副本.jpg.png");
            background-repeat: no-repeat;
            background-position-y: center;
            background-size: 1.3vw;
            background-position: 21vw;

            padding-left: 2vw;

        }

        .login .zhongjian .button {
            width: 100%;
            height: 5vw;
            box-sizing: border-box;
        }

        .login .zhongjian .button button {
            background-color: #6D4A70;
            color: white;
            width: 7vw;
            height: 3vw;
            font-size: 1vw;
            text-align: center;
            margin-top: 3vw;
            margin-left: 3vw;
            border-radius: 5px;
            border: 1px solid #6D4A70;
        }

        .login .zhongjian .button a {
            font-size: 1vw;
            margin-left: 3vw;
            color: gray;
        }
    </style>
</head>
<body>
<div class="login">
    <form action="" method="get">
        <div class="header">
            <p>Login Form</p>
            <p> &#215;</p>
        </div>
        <div class="zhongjian">
            <div class="name">
                <input type="text" name="u_name" id="u_name" pattern="[0-9][0-9a-z]{5,11}" required placeholder="Username">
            </div>
            <div class="pwd">
                <input type="password" name="pwd" id="pwd" pattern="[0-9a-zA-Z]{6,12}" required placeholder=".....">
            </div>
            <div class="button">
                <button type="submit">Sign in</button>
                    <a>Lost your Password?</a>
            </div>
        </div>
    </form>
</div>
</body>
</html>